#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_sudosh_conf_fix.dpatch by  <ptitlouis@woot.f6.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix Installation of sudosh config file.

@DPATCH@
diff -urNad sudosh3-3.2.0~/src/Makefile.am sudosh3-3.2.0/src/Makefile.am
--- sudosh3-3.2.0~/src/Makefile.am	2008-01-30 23:55:46.000000000 +0100
+++ sudosh3-3.2.0/src/Makefile.am	2009-12-29 12:52:50.721993031 +0100
@@ -8,6 +8,6 @@
 
 install-sudosh.conf:
 	test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
-	test -f $(sysconfdir)/sudosh.conf || $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(sysconfdir)/sudosh.conf'
+	test -f $(sysconfdir)/sudosh.conf || $(INSTALL) -o 0 -g 0 -m 0444 '$(srcdir)/sudosh.conf' '$(DESTDIR)$(sysconfdir)/sudosh.conf'
 
 install: install-am install-sudosh.conf
